import React from 'react';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import Home from './pages/home/index'
import User from './pages/user/index'
import Detail from './pages/detail/index'
import './App.css';
function App() {
  return (
    <BrowserRouter>
      <Switch>
        <Route path='/' exact component={Home}></Route>
        <Route path='/user' exact component={User}></Route>
        <Route path='/detail' exact component={Detail}></Route>
      </Switch>
    </BrowserRouter>
  );
}

export default App;
